Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Nova forward ports #113

Merged
merged 2 commits into from
Nov 10, 2023
Merged

More Nova forward ports #113

merged 2 commits into from
Nov 10, 2023

Conversation

huitseeker
Copy link
Contributor

huitseeker and others added 2 commits November 9, 2023 17:28
- Implement marking of `NovaError` enum as non-exhaustive in `errors.rs`.
- Introduce a new error case `InvalidCommitmentKeyLength` in `NovaError` enum that checks the length of the provided commitment key.
- Improve code readability by renaming `generators_hint` variable to `ck_hint` in the `commitment_key` function.
* test: msm test

* refactor: batch invert and error flag

* Apply suggestions from @huitseeker's code review
Copy link
Contributor

@mpenciak mpenciak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small typo, but otherwise looks good!


// check if the (relaxed) R1CS instances have two public outputs
if self.l_u_secondary.X.len() != 2
let is_instance_has_two_outpus = self.l_u_secondary.X.len() != 2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let is_instance_has_two_outpus = self.l_u_secondary.X.len() != 2
let is_instance_has_two_outputs = self.l_u_secondary.X.len() != 2

nit: typo

Copy link
Contributor

@adr1anh adr1anh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@adr1anh adr1anh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@huitseeker huitseeker added this pull request to the merge queue Nov 10, 2023
Merged via the queue into dev with commit 6a9e870 Nov 10, 2023
3 checks passed
@huitseeker huitseeker deleted the more_nova_port branch November 10, 2023 10:02
porcuquine pushed a commit to porcuquine/arecibo that referenced this pull request Nov 28, 2023
* feat: Refactor error handling and variable naming

- Implement marking of `NovaError` enum as non-exhaustive in `errors.rs`.
- Introduce a new error case `InvalidCommitmentKeyLength` in `NovaError` enum that checks the length of the provided commitment key.
- Improve code readability by renaming `generators_hint` variable to `ck_hint` in the `commitment_key` function.

* test: msm test and refactoring (argumentcomputer#254)

* test: msm test

* refactor: batch invert and error flag

* Apply suggestions from @huitseeker's code review

---------

Co-authored-by: ashWhiteHat <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants